package com.shangyitong.yygh_order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shangyitong.yygh.model.order.OrderInfo;
import com.shangyitong.yygh.vo.order.OrderCountQueryVo;
import com.shangyitong.yygh.vo.order.OrderCountVo;
import com.shangyitong.yygh.vo.order.OrderQueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<OrderInfo> {
    Integer getTotal(Long userId,OrderQueryVo orderQueryVo);

    List<OrderInfo> getRecord(Integer start,Integer limit, OrderQueryVo orderQueryVo);

    List<OrderCountVo> getCountMap(@Param("vo") OrderCountQueryVo orderCountQueryVo);
}
